package com.shelpe.services.simbasync.constants;

public enum Mode {
	smart(0), //智能
	speed(1), //引流
	economical(2), //省油
	wide(3);//广撒网
	
	private int value;

	private Mode(int v) {
		this.value = v;
	}

	public int getValue() {
		return this.value;
	}
	
	public static Mode from(int value){
		Mode en = Mode.smart;
		for(Mode e: Mode.values()){
			if(e.getValue() == value){
				en = e;
				break;
			}
		}
		return en;
	}
}
